﻿@model PagedToDoModel
@{
    var grid = new WebGrid(null, rowsPerPage: Model.PageSize,
         ajaxUpdateContainerId: "gridToDoTable", canPage: true, canSort: false, ajaxUpdateCallback: "InitToDo");
    grid.Bind(Model.ToDos, new[] { "IDS", "TypeS", "Submitter", "Description", "Operation", "Status", "Priority", "Assigner", "AssignGroup", "CreateDate" }, 
    autoSortAndPage: false, rowCount: int.Parse(Model.TotalRows + ""));
}
<div id="gridToDoTable">
    @grid.GetHtml(tableStyle: "ContactTB talbe_gray", headerStyle: "ContactTH", htmlAttributes: new { width = "820px", border = 0, cellpadding = 0, cellspacing = 0 },
columns: grid.Columns(grid.Column("IDS", "请求 ID"),
grid.Column("TypeS", "请求类型"),
grid.Column("Operation", "操作"),
grid.Column("Description", "摘要"),
grid.Column("Status", "状态"),
grid.Column("Priority", "优先级"),
grid.Column("AssignGroup", "受派者组"),
grid.Column("Assigner", "受派者"),
grid.Column("Submitter", "建单人"),
grid.Column("CreateDate", "建单日期")))
</div>
